package
{
	import mx.containers.Form;
	
	public final class BoardIcons {
	
		public static function FromIndex(ind: Number): Class {
			switch (ind) {
				case 0:
					return ZERO;
					
				case 1:
					return ONE;
					
				case 2:
					return TWO;
					
				case 3: 
					return THREE;
					
				case 4: 
					return FOUR;
					
				case 5:
					return FIVE;
					
				case 6: 
					return SIX;
					
				case 7:
					return SEVEN;
				
				case 8:
					return EIGHT;
					
				case 9:
					return BLOOD_MINE;
					
				default:
					throw new Error("Invalid index: " + ind);
			}	
		}
			
		[Embed(source='img/c0.png')]
		public static var ZERO: Class;
		
		[Embed(source='img/c1.png')]
		public static var ONE: Class;
		
		[Embed(source='img/c2.png')]
		public static var TWO: Class;
		
		[Embed(source='img/c3.png')]
		public static var THREE: Class;
		
		[Embed(source='img/c4.png')]
		public static var FOUR: Class;
		
		[Embed(source='img/c5.png')]
		public static var FIVE: Class;
		
		[Embed(source='img/c6.png')]
		public static var SIX: Class;
		
		[Embed(source='img/c7.png')]
		public static var SEVEN: Class;
		
		[Embed(source='img/c8.png')]
		public static var EIGHT: Class;
		
		[Embed(source='img/cBloodMine.PNG')]
		public static var BLOOD_MINE: Class;
		
		[Embed(source='img/cEmp.png')]
		public static var CLOSED: Class;
		
		[Embed(source='img/cFlag.png')] 
		public static var FLAG: Class;
		
		[Embed(source='img/cMine.png')]
		public static var MINE: Class;
		
		[Embed(source='img/cOpenedQuestion.png')]
		public static var OPENED_QUESTION: Class;
		
		[Embed(source='img/cWrongMine.png')]				
		public static var WRONG_MINE: Class;
	}
}